{extend name='public/base' /}
{block name='content'}
{include file='public/content_header' /}
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <!-- 表单头部 -->
                <div class="box-header with-border">
                    <div class="btn-group">

                    </div>
                </div>
                <!-- 表单 -->
                <form id="dataForm" class="form-horizontal dataForm" action="" method="post"
                      enctype="multipart/form-data">
                    <!-- 表单字段区域 -->
                    <div class="box-body">
                        <div class="form-group">
                            <label style="width: 36%;" for="push_member_id" class="col-sm-2 control-label">推送类型</label>
                            <div class="col-sm-10 col-md-4">
                                <select name="push_type" id="push_type" class="form-control input-sm index-search">
                                    <option value="">- 请选择推送类型 -</option>
                                    <option value="1">使用【女用户】推送给【平台男用户】</option>
                                    <option value="2">使用【男用户】推送给【平台女用户】</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label style="width: 36%;" for="push_member_id" class="col-sm-2 control-label">推送人融云ID（请根据【推送类型】输入用户）</label>
                            <div class="col-sm-10 col-md-4">
                                <input id="push_member_id"  name="push_member_id" placeholder="请输入推送人的融云ID（【女性 或 男性】官方用户）" value="" type="text" class="form-control field-text">
                            </div>
                        </div>

                        <div class="form-group">
                            <label style="width: 36%;" for="push_content" class="col-sm-2 control-label">推送内容</label>
                            <div class="col-sm-10 col-md-4">
                                <textarea id="push_content" name="push_content" type="text/plain" style="height: 80px;width: 100%;"></textarea>
                            </div>
                        </div>
                    </div>
                    <!-- 表单底部 -->
                    <div class="box-footer">
                        <div class="col-sm-2" style="width: 36%;">
                        </div>
                        <div class="col-sm-10 col-md-4">
                            <div class="btn-group">
                                <button type="submit" class="btn flat btn-info dataFormSubmit">
                                    确认推送
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
<script>
    /** 表单验证 **/
    $('#dataForm').validate({
        rules: {
            'push_type': {
                required: true,
            },
            'push_member_id': {
                required: true,
            },
            'push_content': {
                required: true,
            },
        },
        messages: {
            'push_type': {
                required: '请选择推送类型',
            },
            'push_member_id': {
                required: '请输入推送人融云ID',
            },
            'push_content': {
                required: '请输入推送内容',
            },
        }
    });
</script>
{/block}